<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>众筹管理后台</title>
			<script type="text/javascript" src="../js/jquery1.12.4.min.js" ></script>
		<script type="text/javascript" src="../js/bootstrap.min.js" ></script>
		<script type="text/javascript" src="../js/countUp.js" ></script>
		<link rel="stylesheet" href="../css/bootstrap.min.css" />
		<link rel="stylesheet" href="../css/dashboard.css" />
	</head>
	<body>
		
		 <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">众筹管理平台</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
        	
          <ul class="nav navbar-nav navbar-right">
          	<li><a href="index.jsp">首页</a></li>
          	<li><a href="#">欢迎, 张三</a></li>
            <li><a href="#" title="修改个人资料和密码的页面">设置</a></li>
            <li><a href="#" title="退出登录">退出</a></li>
          </ul>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
        	<ul class="nav nav-sidebar">
            <li ><a href="index.jsp">首页</a></li>
           </ul>
              <ul class="nav nav-sidebar">
            <li><a href="../products.jsp">所有项目</a></li>
            <li class="active"><a href="../auditing.jsp?psid=">项目审核</a></li>
            <li><a href="../following.jsp">项目跟踪</a></li>
 		    <li><a href="../comments.jsp">项目评论</a></li>
            <li><a href="../classify.jsp">项目分类</a></li>
            <li><a href="../recommend.jsp">项目推荐</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li><a href="../user_register.jsp">注册用户</a></li>
            <li><a href="../user_bankroll.jsp">用户资金</a></li>
            <li><a href="../user_log.jsp">用户日志</a></li>
            <li><a href="../user_audit.jsp">实名审核</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li><a href="../news_management.jsp">新闻管理</a></li>
            <li><a href="../problem_management.jsp">问题管理</a></li>
            <li><a href="../user_management.jsp">管理用户</a></li>
            <li><a href="../log_management.jsp">管理日志</a></li>
          </ul>
        </div>
        
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
           <h1 class="page-header" id="h1"></h1>
         <div>
          		<div class="panel panel-default">
				  <div class="panel-heading">
				    <h3 class="panel-title">项目信息</h3>
				  </div>
				  <div class="panel-body">
				    <table class="table table-bordered">	
					  <tr>
					  	<th>申请人</th>
					  	<td id="td1"></td>
					  </tr>
					  <tr>
					  	<th>申请人身份证</th>
					  	<td id="td2"></td>
					  </tr>
					  <tr>
					  	<th>申请人地址</th>
					  	<td id="td3"></td>
					  </tr>
					  <tr>
					  	<th>客服联系人</th>
					  	<td id="td4"></td>
					  </tr>
					  <tr>
					  	<th>客服联系电话</th>
					  	<td id="td5"></td>
					  </tr>
					  <tr>
					  	<th>客服地址</th>
					  	<td id="td6"></td>
					  </tr>
					  <tr>
					  	<th>项目类型</th>
					  	<td id="td7"></td>
					  </tr>
					  <tr>
					  	<th>项目标题</th>
					  	<td id="td8"></td>
					  </tr>
					  <tr>
					  	<th>筹款目的</th>
					  	<td id="td9"></td>
					  </tr>
					  <tr>
					  	<th>项目地址</th>
					  	<td id="td10"></td>
					  </tr>
					  <tr>
					  	<th>筹资金额</th>
					  	<td id="td11"></td>
					  </tr>
					  <tr>
					  	<th>筹资天数</th>
					  	<td id="td12"></td>
					  </tr>
					  <tr>
					  	<th>宣传视频</th>
					  	<td id="td13"></td>
					  </tr>
					  <tr>
					  	<th>封面图</th>
					  	<td id="td14"></td>
					  </tr>
					  <tr>
					  	<th>项目故事</th>
					  	<td id="td15"></td>
					  </tr>
					  <tr>
					  	<th>更多支持</th>
					  	<td id="td16"></td>
					  </tr>
					  <tr>
					  	<th>提供回报简述</th>
					  	<td id="td17"></td>
					  </tr>
					  <tr>
					  	<th>关于自己</th>
					  	<td id="td18"></td>
					  </tr>
					  <tr>
					  	<th>项目状态</th>
					  	<td id="td19"></td>
					  </tr>
					  <tr>
					  	<th>项目已筹金额</th>
					  	<td id="td22"></td>
					  </tr>
					  <tr>
					  	<th>项目支持人数</th>
					  	<td id="td23"></td>
					  </tr>
					  
					</table>
				  </div>
				</div>
				
		   <div>
             <button type="submit" class="btn btn-default btn-primary" >审核通过</button>  
             <button type="submit" class="btn btn-default btn-primary" >审核不通过</button>  
             <a href="../auditing.jsp" class="btn btn-default btn-primary">返回</a>
           </div>
          
          </div>
        </div>
      </div>
    </div>
		
	
		<script>
			$(document).ready(function() {
				 var psid = UrlSearch(); 
				
			});
			
			
			
			$(function(){
				  var psid = UrlSearch(); 
				  //alert(psid); 
			  	 $.ajax({
			  	  url:"/crowd_funding/getProjectByPsId/"+psid,
			     /*  data:"psid="+psid, */
			      type:"GET",
			      success:function(result){
			    	 //1. 解析并显示员工数据
			    	  var project=result.extend.project;
		    		   $("#td1").text(project.user.usName); 
		    		   $("#td2").text(project.user.usIdcard); 
		    		   $("#td3").text(project.user.usAddress); 
		    		   $("#td4").text(project.psCustName); 
		    		   $("#td5").text(project.psCustPhone); 
		    		   $("#td6").text(project.psCustAddress); 
		    		   $("#td7").text(project.projectsType.pstName); 
		    		   $("#td8").text(project.psName); 
		    		   $("#td9").text(project.psGoal); 
		    		   $("#td10").text(project.psAddress); 
		    		   $("#td11").text(project.psMoney); 
		    		   $("#td12").text(project.psDays); 
		    		   $("#td13").text(); 
		    		   $("#td14").text(project.psFile); 
		    		   $("#td15").text(project.psStory); 
		    		   $("#td16").text(project.psSupport); 
		    		   $("#td17").text(project.psRepay); 
		    		   $("#td18").text(project.psAboutme); 
		    		   $("#td19").text(project.psType);  
		    		   $("#td22").text(project.psGetmoney); 
		    		   $("#td23").text(project.psGetpeople); 
		    		   $("#h1").text(project.psName); 
		    		   
			    	 }
			    	 });
			     })
			     
			     
			     function UrlSearch() {
		        var str=location.href; //取得整个地址栏
		        //alert(str);
		        var num=str.indexOf("?") 
		        str=str.substr(num+1); //取得所有参数   stringvar.substr(start [, length ]
		         
		        var arr=str.split("&"); //各个参数放到数组里
		        for(var i=0;i < arr.length;i++){ 
		            num=arr[i].indexOf("="); 
		            if(num>0){ 
		                name=arr[i].substring(0,num);
		               // alert(name);
		                value=arr[i].substr(num+1);
		                //alert(value);
		                this[name]=value;
		            } 
		        } 
		      return this[name];
		    } 
			    $(function(){
			    var psid = UrlSearch(); 
				//alert(psid);
			    document.getElementById("product-info1").href = 'product-info1.jsp?psid='+psid;
			    document.getElementById("product-info2").href = 'product-info2.jsp?psid='+psid;
			    document.getElementById("product-info3").href = 'product-info3.jsp?psid='+psid;
			    document.getElementById("product-info4").href = 'product-info4.jsp?psid='+psid;
			    document.getElementById("product-info5").href = 'product-info5.jsp?psid='+psid;
			  })
		</script>
	</body>
</html>
